|
|
|
|
|
|
|
Figure 29.9
You can use the Function control to
display averages, sums and counts. |
|
|
|
|
|
|
|
|
The Average and Sum functions were used on the Revenue field to create the two amounts at the bottom of the report in this figure. |
|
|
|
|
|
|
|
|
Crystal Reports, a third-party reporting package included with Visual Basic, allows you to create reports from many different types of data sources. You can design and test reports graphically by using the Crystal Reports Designer. The report layout and other information are stored in a custom Crystal Reports file format with an .RPT extension. After you create a Crystal Report file, you can use any of the following methods to display your report for the user: |
|
|
|
|
|
|
|
|
The Crystal Reports control provides an easy way to integrate the finished reports into your Visual Basic program. |
|
|
|
|
|
|
|
|
Crystal Reports API calls allow you to access the Crystal Reports engine without using a custom control. All the API calls for Crystal Reports are located in a file called GLOBAL32.BAS, which should have been installed in your Crystal Reports program directory. |
|
|
|
|
|
|
|
|
The Crystal Reports Web Server, available in Crystal Reports Professional Edition, works with your Web server to deliver reports to an Internet client. |
|
|
|
|
|
|
|
|
|
At the time of this writing, the latest version of Crystal Reports was Crystal Reports version 6.0. Visual Basic, however, includes an older version (4.6). To use this version of Crystal Reports, you must first install it. To install Crystal Reports, double click the executable Crystl32.exe in the folder \Common\Tools\Crysrept on Visual Studio CD 3.  |
|
|
|
|
|
|
|
|
|
|
In the next few sections, you are introduced to the basic operation of Crystal Reports, and you step through the process of displaying a report with the Crystal Reports control. |
|
|
|
|
|